$(function() {
    $("#accordion").accordion({
        autoHeight: false,
        navigation: true,
        collapsible: true
    });
    jQuery('#dock').jqDock({size:22, distance:36, labels:'tc'});
    $(window).resize(function() {
        fixLayout();
    });
    fixLayout();
});

function fixLayout(){
    $('#main-panel').attr('height', $(window).height()-135);
    $('#panel-content').css({width:($(window).width()-$('#panel-menu').width())-41, 'min-height':$(window).height()-135});
}